package cn.com.yang.serializable;

import org.apache.avro.Schema;
import org.apache.avro.specific.SpecificRecordBase;

/**
 * @Author 杨亿金
 * @Date 2021/12/29 22:01
 * @CopyRight
 * @Version
 */
public class Customer extends SpecificRecordBase {
    public int id;
    public String name;

    public Customer() {
    }

    @Override
    public Schema getSchema() {
        return null;
    }

    @Override
    public Object get(int field) {
        return null;
    }

    @Override
    public void put(int field, Object value) {

    }

    public Customer(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
